package com.xg.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author jdh
 * @since 2023-03-30
 */
@Data
@TableName("used_car_brand")
public class UsedCarBrand implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 汽车品牌id
     */
    @TableId(value = "brand_id", type = IdType.AUTO)
    private Integer brandId;

    /**
     * 汽车品牌name
     */
    @TableField("brand_name")
    private String brandName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 添加汽车详情实体类,对应一对多的关系
     */
    @TableField(exist = false)
    private List<UsedCar> usedCarList;

}
